<style>
.headinfo {
    background: none;
}
.headinfo .mod-member {
    margin: 0 auto;
	margin-top: -60px;
    width: 94%;
	left:3%;
    padding: 6px 0 10px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
}
.headinfo .mod-member .sign-btn{
    position: absolute;
    margin: 0 auto;
	top: -44px;
    width: 36px;
	height: 26px;
	right:16px;
    color:#fff;
	text-align:center;
	padding-top:3px;
    background: #3976c7;
}
.bottombg {bottom:-20px;width:100%;height:80px;border-bottom-right-radius:100% 40px;border-bottom-left-radius:100% 40px;}
.mod-group {
    margin: 0 auto;
	margin-top: 5px;
    width: 94%;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
}
.fui-icon-group .fui-icon-col-sm {
    margin:10px 0;
}
.fui-cell-group .fui-cell:before {
	border-top: 0px solid #e8e9eb;
}
.times-list {position:relative;padding-left:24rpx}
.times-list .item {position:relative;height:auto}
.times-list .item .fui-cell {
	margin-left:1.5rem
}
.times-list .item .icon-done {
	width: 0.45rem;
    height: 0.45rem;
    z-index: 2;
    background-color: #cccccc;
    border-radius: 50%;
    position: absolute;
	left:0rpx;
	margin-top:0.7rem;
}
.times-list .itemno .icon-done {
	width: 0.4rem;
    height: 0.4rem;
    z-index: 2;
    background-color: #cccccc;
    border-radius: 50%;
    position: absolute;
	left:0rpx;
	margin-top:0.7rem;
}
.times-list .item .f2f2f2 {
	background-color: #f2f2f2;
}
.times-list .itemno .f2f2f2 {
	background-color: #f2f2f2;
}
.times-list .item .icon-line{
	content: "";
    width: 0.1rem;
    position: absolute;
    top: 0.7rem;
	left: 0.2rem;
	bottom:-0.7rem;
    background: #f2f2f2;
    z-index: 1;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

</style>
<div class='fui-page fui-page-current' ng-if="pagedata.op=='main'">
	<div class='fui-content member-page'>
		<div class="bottombg" style="background:#3976c7"></div>
			<div class="headinfo" style="height:auto;">	
				<div class="mod-member">
					<div class="sign-btn" href="javascript:;" style="background:#3976c7;">备注</div>
						<div class="headinfo" style="background:none;padding:0;color:#999">
												<div class="child userinfo" style="padding-bottom:5px;color:#999;width:4rem">
													<div class="face" style="margin-right:0.6rem;padding: 0.1rem;">
															<img ng-src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/gw-user.png'}}" />
															<span class="vip" style="top: 2rem;background: {{main.syscolor || '#3976c7'}} none repeat scroll 0 0;"><i class="icon icon-vip5" style="font-size:0.5rem;padding-left:0.1rem"></i></span>
													</div>
												</div>
												<div class="child userinfo" style="padding-bottom:0;color:#999;flex: 1;text-align:left;">
													<div class="l bold" style="width:100%">{{pagedata.item.name || ''}}</div>
													<div class="l"> （<span onclick="$('#show_vipcard').modal();"  style="color:{{main.syscolor || '#3976c7'}}"> ID: {{pagedata.item.mid || '无'}}</span>）</div>
													<div class="l">
														<div style="width:100%;font-size:12px">手机: {{pagedata.item.mobile || '无'}}</div>
														<div style="font-size:12px">
														<span>{{pagedata.item.email}}</span>
														</div>
													</div>
												</div>
						</div>
						<div class="fui-icon-group noborder  col-4">
												<div class="fui-icon-col-sm external">
													<div href="javascript:;">
														<div class="text bold">{{pagedata.item.genjinnum || '0'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">跟进次数</div>
													</div>
												</div>
												<div class="fui-icon-col-sm external">
													<div>
														<div class="text bold">{{pagedata.item.worklognum || '0'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">工作日志</div>
													</div>
												</div>
												<div class="fui-icon-col-sm external">
													<div>
														<div class="text bold">{{pagedata.item.tasknum || '0'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">处理工单</div>
													</div>
												</div>
												<div class="fui-icon-col-sm external">
													<div>
														<div class="text bold">{{pagedata.item.tasklognum || '0'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">工单日志</div>
													</div>
												</div>
						</div>
					</div>
				</div>
			<div class="weui_btn_area" style="margin:0.5rem 0.6rem">
					 <a class="weui_btn weui_btn_primary" href="javascript:" ng-click="access_json('jy_workliu/upworker/')">+工作日志</a>
			</div>
			<div class="fui-cell-group fui-cell-click mod-group" style="padding-bottom:0.6rem">
					<a class="fui-cell external" href="javascript:;">
								<div class="fui-cell-text bold" style="font-size:1rem;">工作日志</div>
								<div class="fui-cell-remark" ng-click="access_json('jy_workliu/upworker/')" style="font-size: 0.65rem;">+工作日志</div>
					</a>
					<div class="fui-cell-group" style="margin-top:0">
								<div class="fui-tab fui-tab-danger" style="top:0.7rem">
									<a ng-class="{'external active':pagedata.optype == 'worklog'}" ng-click="pagedata.optype='worklog';tool.get_list('jy_workliu/log/worklog/',true)">工作日志</a>
									<a ng-class="{'external active':pagedata.optype == 'worklist'}" ng-click="pagedata.optype='worklist';tool.get_list('jy_workliu/log/worklist/',true)">我的任务</a>
									<a ng-class="{'external active':pagedata.optype == 'tcpmanage'}" ng-click="pagedata.optype='tcpmanage';tool.get_list('jy_workliu/tcpmanage/list/islog=1',true)">我的工单</a>
									<a ng-class="{'external active':pagedata.optype == 'genjinlist'}" ng-click="pagedata.optype='genjinlist';tool.get_list('jy_workliu/log/genjinlist/',true)">跟进日志</a>
								</div>
								<div class="fui-tab-scroll" style="height:2rem">
									<div ng-repeat="item in pagedata.statuslist" ng-class="{'item':1,'active':pagedata.buystatus == $index}" style="line-height:1.8rem;padding: 0.1rem 0.6rem;" ng-click="pagedata.buystatus=$index">{{item.title}}</div>
								</div>
					</div>
					<div style="margin-top:-0.15rem;padding-right:0;padding-left:0.5rem">
						<div class="times-list" ng-repeat="item in pagedata.list">
							<div class="item">
								<div class="icon-done {{i == 0 || i+1 == item.list.length ? '':'f2f2f2'}}"></div>
								<div class="{{i+1 == item.list.length ? '':'icon-line'}}"></div>
								<div class="fui-cell" style="margin-left:1rem;padding:1rem 1.5rem 0.6rem 0;border-bottom: 1px solid #f0f0f0;">
									<div class="fui-cell-text" style="opacity: 0.8;">
										<div>
											<span class="yuyuetime">{{item.createtime}}</span>
										</div>
										<div class="text black" style="color:#3976c7;margin-top:0.3rem">{{item.username || item.title}}</div>
										<div class="l-f text black" style="width:100%;margin-top:0.3rem">
											<span class="l-f overflow-h" style="max-width:10rem">
												{{item.content || '无记录内容'}}
											</span>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="content-empty" ng-show="!pagedata.list || pagedata.list.length == 0" style="margin-top:1rem">
						  <i class="icon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">暂时没有跟进记录！</p>
						</div>
					</div>
			</div>			
			<div ng-include="sys_html('common/_copyright',true)"></div>
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script>
require(['JsBarcode'],function(JsBarcode){
	//console.log('准备调用');
	JsBarcode('#barcode',scope.pagedata.item.id,{fontSize:36});
});
if(scope.pagedata.optype!='tcpmanage'){
		var action='jy_workliu/log/'+scope.pagedata.optype+'/';
}else{
		var action='jy_workliu/tcpmanage/list/islog=1';
}
scope.pagedata.scroll_bottom=function(){
	if(scope.pagedata.optype!='tcpmanage'){
		var action='jy_workliu/log/'+scope.pagedata.optype+'/';
	}else{
			var action='jy_workliu/tcpmanage/list/islog=1';
	}
	scope.tool.get_list(action);
}
scope.tool.get_list(action,true);
</script>